﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="QLNguoiDung.aspx.cs" Inherits="QuickGame.View.QLNguoiDung" %>

<%@ Register assembly="DevExpress.Web.ASPxGridView.v11.1, Version=11.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v11.1, Version=11.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxNavBar" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxTabControl" tagprefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
    Danh sách người dùng
    </h2>
    <div style="height: 500px">
        
        <dx:ASPxGridView ID="grvNguoiDung" runat="server" AutoGenerateColumns="False" 
            KeyFieldName="ID" 
            onrowdeleting="GridView_RowDeleting" 
            onrowupdating="GridView_RowUpdating" 
            style="margin-left: 39px; margin-top: 62px" Width="816px" 
            onstartrowediting="GridView_StartRowEditing">
            <Columns>
                <dx:GridViewCommandColumn VisibleIndex="7" Width = "100px">
                    <EditButton Visible="True">
                    </EditButton>
                    <DeleteButton Visible="True">
                    </DeleteButton>
                    <ClearFilterButton Visible="True">
                    </ClearFilterButton>
                </dx:GridViewCommandColumn>
                <dx:GridViewDataTextColumn FieldName="ID" Visible="False" VisibleIndex="0">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="Mã" FieldName="Ma" VisibleIndex="1" Width ="50px">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="Họ và tên" FieldName="HoTen" 
                    VisibleIndex="2">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn FieldName="Email" VisibleIndex="5" Width ="150px">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataCheckColumn Caption="Giới tính" FieldName="GioiTinh" 
                    UnboundType="Boolean" VisibleIndex="4" Width = "50px">
                </dx:GridViewDataCheckColumn>
                <dx:GridViewDataDateColumn Caption="Ngày sinh" FieldName="NgaySinh" Width = "80px" 
                    UnboundType="DateTime" VisibleIndex="3">
                    <PropertiesDateEdit DisplayFormatString="dd/MM/yyyy">
                    </PropertiesDateEdit>
                </dx:GridViewDataDateColumn>
                <dx:GridViewDataTextColumn Caption="UserName" FieldName="TenDangNhap" 
                    VisibleIndex="6">
                </dx:GridViewDataTextColumn>
            </Columns>
            <SettingsBehavior AllowFocusedRow="True" />

<SettingsBehavior AllowFocusedRow="True"></SettingsBehavior>
            <SettingsPager NumericButtonCount="15" PageSize="15">
            </SettingsPager>
            <Settings ShowFilterRow="True" />
        </dx:ASPxGridView>
        
    </div>
</asp:Content>
